﻿#include<iostream>
using namespace std;

void fill_zero(int p[], int n) {
	while (n--) {
		*p = 0;
		p++;
	}
}

int main() {
	int a[] = { 1,2,3,4,5 };

	fill_zero(a, 5);

	for (int i = 0; i < 5; i++) {
		cout << "a[" << i << "]=" << a[i] << endl;
	}

	cin.get();
}